<?php 
defined( '_VALID_MOS' ) or die( 'Warning: access denied !' ); 
include_once(dirname(__FILE__) . DS ."b_slideshow.process.php");
$result = slideshowClass::getSlideShow();

// lay du lieu = while
/*
$row = $resultSet->fetch();
while($row = $resultSet->fetch()) {
	echo $row["image_file"] . "<br><br><br>";
}
*/
// lay du lieu = for
/*
$numrow = $resultSet->rowCount();
for($i=0; $i < $numrow; $i++){
	$row = $resultSet->fetch();
	echo $row['image_file'];
}
*/
// lay du lieu = foreach
/*foreach($resultSet as $row) {
	echo $row["image_file"]. "<br>";
}*/

?>
<div id="box_hinhanhhoatdong">
	<div id="sub_box_hinhanhhoatdong">
		<div class="bg_tt_right"><div class="bg_tt_left"><div class="bg_tt"><div class="text_tt">HÌNH ẢNH HOẠT ĐỘNG</div></div></div></div>
		<div id="sub_box_hinhanhhoatdong1">
			<div class="ct_right">
				<div class="ct_left">
					<div class="ct">
						<div id="slideshow">
							<img src="<?php $row = $result->fetch(); echo $row["image_file"]; ?>" class="active">
							<?php while($row = $result->fetch()) { ?>
								<img src="<?php echo $row["image_file"]; ?>">
							<?php } ?>
						</div>
					</div>
				</div>
			</div>
			<div class="bg_bt_right"><div class="bg_bt_left"><div class="bg_bt"><div class="text_bt"></div></div></div></div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<?php unset( $resultSet ); ?>